/**
 * 
 */
package A002_Obrazek;

import java.awt.image.BufferedImage;

/**
 * 
 * kopiowanie BuferedImage
 * ObrazIn -> KopiaObrazu
 *
 */
public class _F_KopiaObrazu {
	
	
	public _F_KopiaObrazu(_A_DaneObrazka DO){
		
		DO._filtr = new BufferedImage (DO.widthOb, DO.heightOb, DO._typObrazka);
		
		for (int y = 0 ; y < DO.heightOb ; y++){
			for (int x = 0 ; x < DO.widthOb ; x++){
				DO._filtr.setRGB(x, y, DO._obrazek.getRGB(x, y)); 
			}
		}
		//System.out.println (" Kopiuje obrazek -> KopiaObrazu " + DO.widthOb + " / " + DO.heightOb );
	}
}
	
